package com.tronsis.distribution.biz;

import android.app.Activity;

import com.tronsis.library.http.UICallBack;


public interface ProductBiz {
    /**
     * 列出产品列表
     *
     * @param activity
     * @param page
     * @param size
     * @param callBack
     * @throws Exception
     */
    void getProductList(Activity activity, int page, int size, UICallBack callBack) throws Exception;

    /**
     * 产品详情
     *
     * @param activity
     * @param productId
     * @param callBack
     * @throws Exception
     */
    void getProductDetail(Activity activity, String productId, UICallBack callBack) throws Exception;


    /**
     * 获取购物车列表
     *
     * @param activity
     * @param callBack
     * @throws Exception
     */
    void getCartList(Activity activity, UICallBack callBack) throws Exception;

    /**
     * @param activity
     * @param productId
     * @throws Exception
     */
    void addCart(Activity activity, String productId, UICallBack callBack) throws Exception;


    /**
     * 更新购物车数量
     *
     * @param activity
     * @param cartId
     * @param amount
     * @param callBack
     * @throws Exception
     */
    void updateCartNum(Activity activity, String cartId, int amount, UICallBack callBack) throws Exception;

    /**
     * @param activity
     * @param cartId
     * @param callBack
     * @throws Exception
     */
    void deleteCart(Activity activity, String cartId, UICallBack callBack) throws Exception;


    /**
     * 提交购物车
     *
     * @param activity
     * @param callBack
     * @throws Exception
     */
    void submitCart(Activity activity, UICallBack callBack) throws Exception;

    /**
     * 查找产品
     *
     * @param activity
     * @param callBack
     * @throws Exception
     */
    void find(Activity activity, String code, UICallBack callBack) throws Exception;

    /**
     * 查找产品码
     * @param activity
     * @param code
     * @param callBack
     * @throws Exception
     */
    void findCodeDetail(Activity activity, String code, UICallBack callBack) throws Exception;

}
